package com.jxb.myshop.dao;

import com.jxb.myshop.entity.Cart;
import com.jxb.myshop.entity.vo.CartVo;

import java.sql.SQLException;
import java.util.List;

public interface CartDao {
    List<Cart> getAll(int uid) throws SQLException;

    Cart getCart(int uid, int pid) throws SQLException;

    int createCart(Cart c) throws SQLException;

    int updateCartNum(Cart cart) throws SQLException;

    List<CartVo> getCartWithProduct(int uid) throws SQLException;

    int clearAll(int uid) throws SQLException;

    int deleteCart(int uid,int pid) throws SQLException;
}
